package events;

import java.util.HashSet;
import java.util.Set;

public class Person {

    private Long id;
    private int age;
    private String firstname;
    private String lastname;
    private Set events = new HashSet();
    private Set emailAddresses = new HashSet();
    
    public Person() {}
    
    public Set getEmailAddresses() {
    	return emailAddresses;
    }
    
    public void setEmailAddresses(Set emailAddresses) {
    	this.emailAddresses = emailAddresses;
    }
    
    public Set getEvents() {
    	return events;
    }
    
    public void setEvents(Set events) {
    	this.events = events;
    }

	/**
	 * @return the age
	 */
	public int getAge()
	{
		return age;
	}

	/**
	 * @param age the age to set
	 */
	public void setAge(int age)
	{
		this.age = age;
	}

	/**
	 * @return the firstname
	 */
	public String getFirstname()
	{
		return firstname;
	}

	/**
	 * @param firstname the firstname to set
	 */
	public void setFirstname(String firstname)
	{
		this.firstname = firstname;
	}

	/**
	 * @return the id
	 */
	public Long getId()
	{
		return id;
	}

	/**
	 * @param id the id to set
	 */
	@SuppressWarnings("unused") // used by hibernate
	private void setId(Long id)
	{
		this.id = id;
	}

	/**
	 * @return the lastname
	 */
	public String getLastname()
	{
		return lastname;
	}

	/**
	 * @param lastname the lastname to set
	 */
	public void setLastname(String lastname)
	{
		this.lastname = lastname;
	}

}